I have used this command to drop variables that had more than 50% of their data missing.
But it didn't give me the names of the variables that have been dropped.
PHP Code:
glo p = 0.5
foreach var of varlist b-arp * {
count if missing(`var')
if (r(N)/_N) >= $p drop `var'
}

Comment